<?php

namespace app\api\validate;

use think\Validate;

class Goods extends Validate
{
    protected $rule = [
        'goods_id' => 'require',
        // 'account' => 'require',
        'num' => 'require',
    ];

    protected $message = [
        'goods_id.require' => '权益商品编号不能为空',
        // 'account.require' => '权益账号不能为空',
        'num.require' => '权益下单数量不能为空',
    ];
    protected $scene = [
        'pay_coupon' => [
            'goods_id',
            // 'account',
            'num',
        ],
    ];
}
